home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Utils / Fasterfox / Bin / fasterfox-1.0.3-fx.xpi / chrome / fasterfox.jar / content / fasterfox / pref-fasterfox.xul < prev   
Encoding:
Extensible Markup Language  |  2005-12-29  |  13.2 KB  |  330 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://mozapps/skin/pref/pref.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://browser/skin/pref/pref.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://global/skin/global.css"?>
  6. <?xml-stylesheet href="chrome://mozapps/content/preferences/preferences.css"?>
  7. <?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
  8.  
  9. <!-- Locale info //-->
  10. <!DOCTYPE dialog SYSTEM "chrome://fasterfox/locale/pref-fasterfox.dtd">
  11.  
  12. <!-- Fasterfox Preferences Options //-->
  13. <window
  14.   title="&options.title;"
  15.   orient="vertical"
  16.   windowtype="Fasterfox:Options"
  17.   id="pref-fasterfox"
  18.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  19.   xmlns:html="http://www.w3.org/1999/xhtml"
  20.   onload="FF_windowOnLoad();sizeToContent();"
  21.   headertitle="Fasterfox">
  22.  
  23. <script type="application/x-javascript" src="chrome://fasterfox/content/pref-fasterfox.js"/>
  24. <script type="application/x-javascript" src="chrome://fasterfox/content/fasterfoxOverlay.js"/>
  25.    
  26. <hbox align="start" orient="horizontal" style="background: #FFFFFF; border-bottom: 2px groove ThreeDFace;">
  27.   <grid>
  28.     <columns>
  29.       <column style="padding-top:2px;padding-bottom:2px;padding-left:15px;padding-right:15px;background-color:#c0d2ee;"/>
  30.       <column style="padding:6px;" flex="1"/>
  31.     </columns>
  32.     <rows>
  33.       <row align="center">
  34.         <image src="chrome://fasterfox/skin/icon.png" style="width:32px;"/>
  35.         <vbox>
  36.           <text value="Fasterfox" style="font-weight: bold; font-size: x-large;"/>
  37.           <text value=" http://fasterfox.mozdev.org/" class="url" onmouseover="this.style.cursor='pointer';"
  38.              onclick="window.open('http://fasterfox.mozdev.org/');"/>
  39.         </vbox>
  40.       </row>
  41.     </rows>
  42.   </grid>
  43. </hbox>
  44.  
  45. <tabbox class="settingsBox"> 
  46.  
  47. <tabs id="ff_tabs" oncommand="parent.hPrefWindow.setPref('int', 'extensions.fasterfox.lastTab', document.getElementById('ff_tabs').selectedIndex);">
  48.   <tab label="&main.tab;" id="ff_Main_tab" />
  49.   <tab label="&prefetching.tab;" id="ff_Prefetching_tab" />
  50.   <tab label="&cache.tab;" id="ff_Cache_tab" />
  51.   <tab label="&connection.tab;" id="ff_Connection_tab" />
  52.   <tab label="&pipelining.tab;" id="ff_Pipelining_tab" />
  53.   <tab label="&rendering.tab;" id="ff_Rendering_tab" />
  54.   <tab label="&popups.tab;" id="ff_Popups_tab" /> 
  55. </tabs>
  56.  
  57. <tabpanels>
  58.  
  59.  
  60. <!-- MAIN PREFS -->
  61. <tabpanel id="Main"> 
  62. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  63. <caption label="&main.captionLabel;"/>
  64.   <vbox flex="1">
  65.       <radiogroup id="ff_presets" prefstring="extensions.fasterfox.preset" preftype="int"
  66.       oncommand="if(document.getElementById('ff_presets').selectedIndex==4) {FF_displayTabs(true);} else {FF_displayTabs(false);}">
  67.     <radio id="ff_default" label="&defaultPreset.label;" style="font-weight: bold;"
  68.     oncommand="FF_setPreset(0);FF_displayTabs(false);ff_showTimer(true);" value="0"/> 
  69.     <description class="indent">&defaultPreset.desc;</description>     
  70.  
  71.     <radio id="ff_goodNetCitizen" label="&courteousPreset.label;" style="font-weight: bold;"
  72.     oncommand="FF_setPreset(1);FF_displayTabs(false);ff_showTimer(true);" value="1"/>
  73.     <description class="indent">&courteousPreset.desc;</description> 
  74.  
  75.     <radio id="ff_optimized" label="&optimizedPreset.label;" style="font-weight: bold;"
  76.     oncommand="FF_setPreset(2);FF_displayTabs(false);ff_showTimer(true);" value="2"/>
  77.     <description class="indent">&optimizedPreset.desc;</description>    
  78.  
  79.     <radio id="ff_turboCharged" label="&turboPreset.label;" style="font-weight: bold;"
  80.     oncommand="FF_setPreset(3);FF_displayTabs(false);ff_showTimer(true);" value="3"/>
  81.     <description class="indent">&turboPreset.desc;</description>  
  82.  
  83.     <radio id="ff_custom" label="&customPreset.label;" style="font-weight: bold;"
  84.     oncommand="FF_displayTabs(true);" value="4"/>
  85.     <description class="indent">&customPreset.desc;</description>  
  86.     </radiogroup>
  87.   </vbox>
  88. </groupbox>
  89. </tabpanel>
  90.  
  91.  
  92. <!-- FASTERFOX PREFS -->
  93. <tabpanel id="Prefetching"> 
  94. <vbox flex="1">
  95. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  96. <caption>
  97.   <checkbox id="ff_enhancedPrefetching" label="&enablePrefetching.label;"
  98.       prefstring="extensions.fasterfox.enhancedPrefetching" preftype="bool"
  99.       oncommand="if(document.getElementById('ff_enhancedPrefetching').checked){FF_disableWhitelist(false);}else{FF_disableWhitelist(true);}"/>
  100. </caption>
  101.   <description>&enablePrefetching.desc1;</description>
  102.   <separator class="thin"/>
  103.   <description class="url" onmouseover="this.style.cursor='pointer';" onclick="window.open('http://fasterfox.mozdev.org/');">&enablePrefetching.desc2;</description>
  104.   <separator class="thin"/>
  105.   <groupbox flex="1">
  106.         <caption label="&whitelist.label;"/> <hbox flex="1"> 
  107.     <listbox id="ff_whitelistbox" style="overflow: auto;" width="320" height="75" flex="1" seltype="single"    
  108.             onclick="if(document.getElementById('ff_whitelistbox').selectedIndex >= 0) {document.getElementById('ff_rmvbtn').disabled = '';} else {document.getElementById('ff_rmvbtn').disabled = 'true';}">
  109.     </listbox>
  110.     <textbox flex="1" id="ff_whitelist" hidden="true"
  111.     prefstring="extensions.fasterfox.whitelist" preftype="char"/>
  112.     <vbox flex="1">
  113.       <textbox id="ff_addtxt" value=""/>
  114.       <separator class="thin"/>
  115.       <button id="ff_addbtn" label="&whitelist.add;"
  116.           oncommand="FF_onAdd();"/>
  117.       <button id="ff_rmvbtn" label="&whitelist.remove;" disabled="true"
  118.           oncommand="FF_onRemove();" />
  119.     </vbox> </hbox>
  120.   </groupbox>
  121. </groupbox>
  122. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  123. <caption label="&timer.captionLabel;"/> 
  124.   <vbox>
  125.     <checkbox id="ff_pageLoadTimer" label="&timer.label;"
  126.     prefstring="extensions.fasterfox.pageLoadTimer" preftype="bool"
  127.     oncommand="if(document.getElementById('ff_pageLoadTimer').checked) {ff_showTimer(true);} else {ff_showTimer(false);}" />
  128.   </vbox>
  129.     <description>&timer.desc;</description> 
  130. </groupbox>
  131. </vbox>
  132. </tabpanel>
  133.  
  134.  
  135. <!-- CACHE PREFS -->
  136. <tabpanel id="Cache">
  137. <vbox flex="1">
  138. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  139. <caption label="&cache.captionLabel;"/> 
  140.   <grid>
  141.     <columns>
  142.       <column flex="1"/>
  143.       <column flex="1"/>
  144.       <column flex="1"/>
  145.       <column flex="1"/>
  146.     </columns>
  147.     <rows>
  148.       <row align="center">
  149.         <label control="ff_cacheMemoryCapacity" value="&memoryCache.label;"/>
  150.         <textbox id="ff_cacheMemoryCapacity" size="7"
  151.         prefstring="browser.cache.memory.capacity" preftype="int"/>
  152.         <label control="ff_cacheDiskCapacity" value="&diskCache.label;"/>
  153.         <textbox id="ff_cacheDiskCapacity" size="7"
  154.         prefstring="browser.cache.disk.capacity" preftype="int"/>
  155.       </row>
  156.     </rows>
  157.   </grid>
  158.     <separator class="thin"/>
  159.     <description>&cache.desc;</description>
  160. </groupbox>
  161. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  162. <caption label="&dnscache.captionLabel;"/>
  163.     <grid>
  164.     <columns>
  165.       <column flex="1"/>
  166.       <column flex="1"/>
  167.       <column flex="1"/>
  168.       <column flex="1"/>
  169.     </columns>
  170.     <rows>
  171.       <row align="center">
  172.         <label control="ff_dnsCacheExpiration" value="&dnscacheExp.label;"/>
  173.         <textbox id="ff_dnsCacheExpiration" size="7"
  174.         prefstring="network.dnsCacheExpiration" preftype="int"/>
  175.         <label control="ff_dnsCacheEntries" value="&dnscacheEntries.label;"/>
  176.         <textbox id="ff_dnsCacheEntries" size="7"
  177.         prefstring="network.dnsCacheEntries" preftype="int"/>
  178.       </row>
  179.     </rows>
  180.   </grid>
  181.     <separator class="thin"/>
  182.     <description>&dnscache.desc;</description>
  183. </groupbox>
  184. </vbox>
  185. </tabpanel>
  186.  
  187. <!-- HTTP CONNECTION PREFS -->
  188. <tabpanel id="Connection">
  189. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  190. <caption label="&connection.captionLabel;"/>
  191.   <grid>
  192.     <columns>
  193.       <column flex="1"/>
  194.       <column flex="1"/>
  195.     </columns>
  196.     <rows>
  197.       <row align="center">
  198.         <label control="ff_maxConnections" value="&connectionMaxConn.label;"/>
  199.         <textbox id="ff_maxConnections" size="2"
  200.         prefstring="network.http.max-connections" preftype="int"/>
  201.       </row>
  202.       <row align="center">
  203.         <label control="ff_maxConnectionsPerServer" value="&connectionMaxConnServ.label;"/>
  204.         <textbox id="ff_maxConnectionsPerServer" size="2"
  205.         prefstring="network.http.max-connections-per-server" preftype="int"/>
  206.       </row>
  207.       <row align="center">
  208.         <label control="ff_maxPersistentConnectionsPerServer" value="&connectionMaxPerConnServ.label;"/>
  209.         <textbox id="ff_maxPersistentConnectionsPerServer" size="2"
  210.         prefstring="network.http.max-persistent-connections-per-server" preftype="int"/>
  211.       </row>
  212.       <row align="center">
  213.         <label control="ff_maxPersistentConnectionsPerProxy" value="&connectionMaxPerConnProxy.label;"/>
  214.         <textbox id="ff_maxPersistentConnectionsPerProxy" size="2"
  215.         prefstring="network.http.max-persistent-connections-per-proxy" preftype="int"/>
  216.       </row>
  217.     </rows>
  218.   </grid>
  219.   <separator class="thin"/>
  220.     <description>&connection.desc;</description>
  221. </groupbox>
  222. </tabpanel>
  223.  
  224. <!-- HTTP PIPELINING PREFS --> 
  225. <tabpanel id="Pipelining">
  226. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  227. <caption label="&pipelining.captionLabel;"/>
  228.   <vbox>
  229.     <checkbox id="ff_pipelining" label="&pipeliningEnable.label;"
  230.     prefstring="network.http.pipelining" preftype="bool"/>
  231.     <checkbox id="ff_pipeliningFirstRequest" label="&pipeliningEnableFirst.label;"
  232.     prefstring="network.http.pipelining.firstrequest" preftype="bool"/>
  233.     <checkbox id="ff_proxyPipelining" label="&pipeliningEnableProxy.label;"
  234.     prefstring="network.http.proxy.pipelining" preftype="bool"/>
  235.     <grid flex="1">
  236.       <columns>
  237.         <column flex="1"/>
  238.         <column flex="1"/>
  239.       </columns>
  240.       <rows>
  241.         <row align="center">
  242.           <label control="ff_maxPipeliningRequests" value="&pipeliningMax.label;"/>
  243.           <textbox id="ff_maxPipeliningRequests" size="2"
  244.           prefstring="network.http.pipelining.maxrequests" preftype="int"/>
  245.         </row> 
  246.       </rows>
  247.     </grid>
  248.   </vbox>
  249.   <separator class="thin"/>
  250. <description>&pipelining.desc;</description>
  251. </groupbox>
  252. </tabpanel>
  253.  
  254. <!-- RENDERING PREFS -->
  255. <tabpanel id="Rendering">
  256. <vbox flex="1">
  257. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  258. <caption>
  259.   <checkbox id="ff_fastBackCheckbox" label="&fastback.label;"
  260.       oncommand="if(document.getElementById('ff_fastBackCheckbox').checked){FF_disableFastBack(false);document.getElementById('ff_fastBack').value=5;}else{FF_disableFastBack(true);document.getElementById('ff_fastBack').value=0;}"/>
  261. </caption>
  262.   <grid>
  263.     <columns>
  264.       <column flex="1"/>
  265.       <column flex="1"/>
  266.     </columns>
  267.     <rows>
  268.       <row align="center">
  269.     <label control="ff_fastBack" value="&fastback.pagesInMem;"/>
  270.     <textbox id="ff_fastBack"  size="4"
  271.     prefstring="browser.sessionhistory.max_viewers" preftype="int"/>
  272.       </row>
  273.     </rows>
  274.   </grid>
  275.   <separator class="thin"/>
  276.   <description>&fastback.desc;</description>
  277. </groupbox> 
  278. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  279. <caption label="&rendering.captionLabel;"/>
  280.   <grid>
  281.     <columns>
  282.       <column flex="1"/>
  283.       <column flex="1"/>
  284.     </columns>
  285.     <rows>
  286.       <row align="center">
  287.         <label control="ff_initialPaintDelay" value="&renderingInitPait.label;"/>
  288.         <textbox id="ff_initialPaintDelay" size="4"
  289.         prefstring="nglayout.initialpaint.delay" preftype="int"/>
  290.       </row>
  291.       <row align="center">
  292.         <label control="ff_uiSubmenuDelay" value="&renderingSubmenu.label;"/>
  293.         <textbox id="ff_uiSubmenuDelay" size="4"
  294.         prefstring="ui.submenuDelay" preftype="int"/>
  295.       </row>
  296.     </rows>
  297.   </grid>
  298. <separator class="thin"/>
  299. <description>&rendering.desc;</description>
  300. </groupbox> 
  301. </vbox>
  302. </tabpanel>
  303.  
  304. <!-- POPUP PREFS -->
  305. <tabpanel id="Popups">
  306. <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
  307. <caption label="&popups.captionLabel;"/>
  308.  <vbox>
  309.     <checkbox id="ff_disablePluginPopupsCheckbox" label="&popupsDisable.label;"
  310.     oncommand="if(document.getElementById('ff_disablePluginPopupsCheckbox').checked) {document.getElementById('ff_disablePluginPopups').value=2;} else {document.getElementById('ff_disablePluginPopups').value=0;}"/>
  311.     <textbox id="ff_disablePluginPopups" hidden="true"
  312.     prefstring="privacy.popups.disable_from_plugins" preftype="int"/>
  313.   </vbox>
  314. <separator class="thin"/>
  315. <description>&popups.desc1;</description>
  316. <separator class="thin"/> 
  317. <description>&popups.desc2;</description>
  318. </groupbox> 
  319. </tabpanel>
  320.  
  321. </tabpanels>
  322.  
  323. </tabbox>
  324.  
  325. <hbox flex="1" align="right" style="padding:10px;height:75px;">
  326.     <button dlgType="accept" label="&button.ok;" id="ff_btnok" oncommand="FF_onOK();window.close();" default="true"/>
  327.     <button dlgType="cancel" label="&button.cancel;" id="ff_btncancel" oncommand="window.close();"/>
  328. </hbox>
  329.  
  330. </window>